package cn.zebra.dev.product.module.sku.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * 商品(商品sku)与规格内容绑定中间表
 * @author runnable@sina.cn
 */
@Getter
@Setter
@TableName("product_sku_attribute")
public class ProductSkuAttributeEntity {

    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("商品id")
    private Long productId;

    @ApiModelProperty("商品SkuId")
    private Long productSkuId;

    @ApiModelProperty("规格id")
    private Long attributeId;

    @ApiModelProperty("属性名")
    private String attributeKey;

    @ApiModelProperty("属性值")
    private String attributeValue;
}
